From: daniel Date: Thu, 15 Jun 2017 15:56:10 +0000 (+0200) Subject: Fix call to makeContent in SpecialChangeContentModel X-Git-Tag: 1.31.0-rc.0~2958^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=b5d5c125523721139c0297df7e5075d022ec879c;p=lhc%2Fweb%2Fwiklou.git Fix call to makeContent in SpecialChangeContentModel ContentHandler::makeContent expects serialized content as the first parameter, not native data. Change-Id: Ibf1825a191d10b4dd8b9a5cee95b02b2b91f3d92 --- diff --git a/includes/specials/SpecialChangeContentModel.php b/includes/specials/SpecialChangeContentModel.php index a36b4148bc..8eaae4ca0f 100644 --- a/includes/specials/SpecialChangeContentModel.php +++ b/includes/specials/SpecialChangeContentModel.php @@ -198,7 +198,7 @@ class SpecialChangeContentModel extends FormSpecialPage { $oldContent = $this->oldRevision->getContent(); try { $newContent = ContentHandler::makeContent( - $oldContent->getNativeData(), $this->title, $data['model'] + $oldContent->serialize(), $this->title, $data['model'] ); } catch ( MWException $e ) { return Status::newFatal(